﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<SimplePoll.Web.Models.Poll>" %>
<%@ Import Namespace="SimplePoll.Web" %>

<link rel="Stylesheet" type="text/css" href="<%= AppConfig.CallbackUrl %>Content/Site.css?v6" />
<div class="tabwrap">
		 <div class="wrap">
		<% using (Html.BeginForm("PostAnswer"))
     { %>
		    <div class="questions">
	            <img src="/Content/images/simplePoll.jpg" alt="Simple Poll"/>
                <div class="qmargin">
        			<p class="qt" style="margin-top:46px"><strong><%=Model.Question %></strong></p>
        			<div class="answer">
                        <label><%=Html.RadioButton("answer", 1, true)%><%=Model.Answer1 %></label>
                            <br />
                        <label><%=Html.RadioButton("answer", 2, false)%><%=Model.Answer2 %></label>
        				    <br />
        				<label><%=Html.RadioButton("answer", 3, false)%><%=Model.Answer3 %></label>
        			</div>
                    <%=Html.HiddenFor(m=>m.Name) %>
    		        <input type="submit"  name="submit" value="Submit" class="submit-button"/>
	            </div>
            </div>
	    <% } %>
    </div>
    </div>